package com.xgimi.open.skill.datamanager.domain.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.xgimi.open.skill.datamanager.domain.entity.IntentDO;

import java.util.ArrayList;
import java.util.List;

/**
 * @author coderzpw.zhang
 * @description 针对表【intent(意图表)】的数据库操作Service
 * @createDate 2023-02-07 19:23:48
 */
public interface IntentService extends IService<IntentDO> {

    List<IntentDO> queryIntentByNameAndVid(IntentDO intentDO);

    Boolean saveIntent(IntentDO intentDO);

    List<IntentDO> listBySkillVid(Long skillVid);

    IntentDO queryById(Long id);

    List<IntentDO> queryByNameByVidAndNoId(IntentDO intentDO);

    boolean updateByIdAndVersion(IntentDO intentDO);

    List<IntentDO> listBySkillVids(List<Long> skillVids);

    boolean removeBySkillVids(List<Long> skillVids);

    List<IntentDO> listByNames(ArrayList<String> intentNames, Long skillVid);

    List<IntentDO> listByids(ArrayList<Long> intentIds);

    /**
     * 物理删除
     * @param skillVid
     * @return
     */
    Boolean physicalDeleteBySkillVid(Long skillVid);
}
